//
// Created by vista on 2017/10/25.
//

#ifndef FACEA_FACEDETECT_H
#define FACEA_FACEDETECT_H

#include "common.h"
#include "LBFRegressor.h"
#include "Face.h"


#include "face_detection.h"

using namespace seeta;

extern LBFRegressor regressor;

int detect_face_and_align(string first_file_path, string second_file_path);

int detect_by_opencv(const Mat & img, std::vector<cv::Rect> & faces , double scale);

int detect_by_seetface(const Mat & , std::vector<cv::Rect> & , cv::Mat & );

int detect_and_draw( Mat& img, CascadeClassifier& cascade,
                     LBFRegressor& regressor, Face & face,
                     double scale, bool tryflip );



#endif //FACEA_FACEDETECT_H
